#include <stdio.h>
#include "listes.h"
#include "liste_chaine.h"


main(int argc, char **argv)
{
   Vector myVector, vectorNotes;
   int liste_notes[10] = {-56,23,34,-23,12,56,24,16,75,45};
   int liste_triee[10] = {0};
   int nb_notes = 10;
   int i;
   
   ListeTri(liste_notes,10,liste_triee);
   
   for (i=0;i<10;i++)
   {
      printf("%i ",liste_triee[i]);
   }
   printf("\n");
   
   
   table2vect(liste_triee,10,&vectorNotes);
   print_Vect(&vectorNotes);
   
   del_Vect(&vectorNotes);
   print_Vect(&vectorNotes);
   
   
   
   ini_Vector(&myVector);
   print_Vect(&myVector);
   
   for (i=0;i<5;i++)
   {
      add_cell(&myVector,1000,i);
      print_Vect(&myVector);
   }
   
   rm_cell(&myVector,1);
   print_Vect(&myVector);
   
   add_cell(&myVector,2,7);
   print_Vect(&myVector);
   
   *ite_Vect(&myVector, 3) = 12;
   print_Vect(&myVector);
   
   
}
